package com.sale.service;

import com.sale.entity.Book;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("book-service")
public interface BookService {
	
	@GetMapping("/book/{id}")
	Book getBook(@PathVariable("id") Integer id);


}
